![]() |
pCon.planner Plugin SDK
Version 8.16
|
A two dimensional float vector or point. More...
Public Member Functions | |
| GeVec2f (float x, float y) | |
| Constructor. More... | |
| GeVec2f | Normalized () |
| Returns a new vector with normalized length. More... | |
| bool | IsSame (GeVec2f other, float tol) |
| Returns true if this vector equals another vector using a tolerance. More... | |
| GeVec2d | ToVec2d () |
| Converts this vector to GeVec2d. More... | |
Public Attributes | |
| float | x |
| X coordinate. More... | |
| float | y |
| Y coordinate. More... | |
Properties | |
| float | Length [get] |
| Returns the length of the vector. More... | |
| float | Length2 [get] |
| Returns the squared length of the vector. More... | |
A two dimensional float vector or point.
| X3g::Plugin::GeVec2f::GeVec2f | ( | float | x, |
| float | y | ||
| ) |
Constructor.
| bool X3g::Plugin::GeVec2f::IsSame | ( | GeVec2f | other, |
| float | tol | ||
| ) |
Returns true if this vector equals another vector using a tolerance.
| GeVec2f X3g::Plugin::GeVec2f::Normalized | ( | ) |
Returns a new vector with normalized length.
| float X3g::Plugin::GeVec2f::x |
X coordinate.
| float X3g::Plugin::GeVec2f::y |
Y coordinate.
|
get |
Returns the length of the vector.
|
get |
Returns the squared length of the vector.
1.8.4